package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}

type Tomato struct {
	gorm.Model
	UsID    int    `gorm:"type:int"`
	Title   string `gorm:"type:varchar(50)"`
	Comment string `gorm:"type:varchar(50)"`
	Author  string `gorm:"type:varchar(50)"`
}

type TomatoUser struct {
	UsID     int
	Title    string
	Comment  string
	Author   string
	Username string
	Password string
}
